steam_file_write_file

语法:

steam_file_write_file(steam_filename, local_filename);


参数 描述
steam_filename The Steam Cloud file to copy over.
local_filename The local file to use to copy from.


返回: 实数


描述

With this function you can copy the contents of a locally saved file to a file that is synchronised with the Steam Cloud. The local file must exist before using this function, and it will return a value of 0 if it fails for whatever reason and a value greater than 0 if it succeeds.


例如:

steam_file_write_file("rm_koala.png", "Koala2.png");

The above code will copy the contents of the file "Koala2.png" to the Steam Cloud file "rm_koala.png".